package com.crazyhat.crazyhat.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 浏览记录
 * </p>
 *
 * @author crazyhat
 * @since 2024-07-05
 */
@Getter
@Setter
@TableName("footPrint")
public class Footprint implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 浏览记录id
     */
    @TableId(value = "footprint_id", type = IdType.AUTO)
    private Integer footprintId;

    /**npm run s
     * 社团id
     */
    @TableField("club_id")
    private int clubId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private int userId;

    /**
     * 浏览时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("browse_time")
    private LocalDateTime browseTime;

    /**
     * 社团名称
     */
    @TableField("club_name")
    private String clubName;
}
